package org.tang.springcloudvv.cxf.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tang.springcloudvv.base.Result;

/**
 * <p><em>Created on 2022/1/19 12:06 下午</em></p>
 *
 * @author fuzhongtang
 * @since 1.0.1
 */
@Component
@FeignClient(value = "springcloudvv-user")//要调用的服务名称
public interface Springcloudvvuser {

    @PostMapping("/user/getUser")
    public Result getUser(@RequestParam("userName") String userName);
}
